package com.ruoyi.app.model;

public enum ActType {
    WS_LOGIN("1"),
    WS_MSG("2"),
    WS_LOGOUT("3"),
    WS_HEARTBEAT("4");



    private final String value;
    ActType(String value) {
        this.value = value;
    }
    public String getValue() {
        return value;
    }
    public static ActType getByValue(String value) {
        for (ActType type : values()) {
            if (type.getValue().equals(value)) {
                return type;
            }
        }
        return null;
    }
}
